import request from "@/utils/request";

// 获取小程序的公告栏列表,分页
export function getXcxNoticeList(data) {
  return request({
    url: "/XcxNotice/list",
    method: "get",
    params: data,
  });
}

// 获取详细数据
export function getXcxNoticeById(data) {
  return request({
    url: "/XcxNotice/ " + data,
    method: "get",
  });
}

// 添加小程序的公告栏数据
export function addXcxNotice(data) {
  return request({
    url: "/XcxNotice",
    method: "post",
    data: data,
  });
}

// 修改小程序的公告栏数据
export function updateXcxNotice(data) {
  return request({
    url: "/XcxNotice/update",
    method: "put",
    data: data,
  });
}

// 删除小程序的公告栏数据 (单个删除)
export function deleteXcxNotice(data) {
  return request({
    url: "/XcxNotice/" + data,
    method: "delete",
  });
}

// 批量删除小程序的公告栏数据
export function deleteXcxNoticeBatch(data) {
  return request({
    url: "/XcxNotice/batch",
    method: "delete",
    data: data,
  });
}
